<template>
	<view class="home">
		<view v-for="item in userArr" :key="item._id">
			<hr>
			<view>姓名：{{item.name}}</view>
			<view>电话：{{item.tel}}</view>
			<view>邮箱：{{item.email}}</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				title:"hello",
				userArr:[]
			}
		},
		onLoad() {
			uniCloud.callFunction({
				name:"funDemoDb",
				data:{}
			}).then(res=>{
				console.log(res);
				this.userArr = res.result.data;
			})
		},
		methods: {
			
		}
	}
</script>

<style>

</style>
